package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.VipView
import hlhj.fhp.checkpoint.javaBean.MyBaseBean
import hlhj.fhp.checkpoint.javaBean.MyVipBean
import hlhj.fhp.checkpoint.module.VipModule

/**
 * Created by Never Fear   on 2018\12\14 0014.
Never More....
 */
class VipPresenter :BasePresenter<VipModule,VipView>(), VipView {
    fun bindVip(num:String,c:Context){
        module?.bindVIP(num, c)
    }
    override fun setBindVip(myBaseBean: MyBaseBean) {
        view?.setBindVip(myBaseBean)
    }

    override fun setMyVip(myVipBean: MyVipBean) {
        view?.setMyVip(myVipBean)
    }
    fun getVip(c:Context){
        module?.getVips(c)
    }
    override fun createModule() {
        module= VipModule()
        module.listener=this
    }
}